export enum Compare {
    LESS_THAN = -1,
    NORMAL_THAN,
    BIGGER_THAN
}


export interface compareType<T> {
    (a: T, b: T): Compare
}

export function defaultCompare<T>(a: T, b: T): Compare {
    if (a === b) {
        return Compare.NORMAL_THAN;
    }
    return a < b ? Compare.LESS_THAN : Compare.BIGGER_THAN;
}
